package org.cloud.demo1.client.client;

import org.cloud.demo1.client.config.FeignLoggerConfig;
import org.cloud.demo1.client.entity.UserOfDemo1;
import org.cloud.demo1.client.fallbackfactory.Demo1TestClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 测试demo1
 * @author wangyuan
 * @since 2019年6月2日 下午8:59:54
 *
 */
@FeignClient(value = "cloud-service-demo-1", fallbackFactory = Demo1TestClientFallbackFactory.class, configuration = FeignLoggerConfig.class)
@RequestMapping(value = "/demo1")
public interface Demo1TestClient {

	@RequestMapping(value = "/testMethod1", method = RequestMethod.GET)
	public String testMethod1OfDemo1();
	
	@RequestMapping(value = "/testMethod2", method = RequestMethod.GET)
	public UserOfDemo1 testMethod2OfDemo1();
}
